import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: () => import('../views/LoginView.vue'),
    },
    {
      path: '/main',
      name: 'main',
      component: () => import('../views/MainView.vue'),
      children: [
        {
          path: '/category',
          name: 'category',
          component: () => import('../views/ProcessEngine/FormCategoryView.vue'),
        }, {
          path: '/from',
          name: 'from',
          component: () => import('../views/ProcessEngine/FormView.vue'),
        }, {
          path: '/node',
          name: 'node',
          component: () => import('../views/ProcessEngine/NodeView.vue'),
        }, {
          path: '/nodeCfg',
          name: 'nodeCfg',
          component: () => import('../views/ProcessEngine/NodeCfgView.vue'),
        }, {
          path: '/instance',
          name: 'instance',
          component: () => import('../views/EventHandling/InstanceView.vue'),
        }, {
          path: '/myProcess',
          name: 'myProcess',
          component: () => import('../views/EventHandling/MyProcessView.vue'),
        }, {
          path: '/myProcess2',
          name: 'myProcess2',
          component: () => import('../views/EventHandling/MyProcessView2.vue'),
        },



      ]
    },
  ],
})

export default router
